/**
 * 
 */
package com.epam.entity;

/**
 * @author Nugumanova V.
 *
 */
public class Training extends AbstractEntity {
	protected Course course;	
	protected int trainingMark=0;
	protected String trainingReview = null;
	protected String studentName = "";
	
	public Training(long id, long id1, String courseName, String studentName, int trainingMark, String trainingReview) {
		super(id);
		this.course = new Course(id1, courseName);
		this.studentName = studentName;
		this.trainingMark = trainingMark;
		this.trainingReview = trainingReview;
	}
	public Training(long id, long id1, String courseName, String teacherName,
			String period, int hours, int trainingMark, String trainingReview) {
		super(id);
		this.course = new Course(id1, courseName, teacherName, period, hours);
		this.trainingMark = trainingMark;
		this.trainingReview = trainingReview;
	}
	/*public Training(long id, long id1, String courseName, String teacherName,
			String period, int hours, int trainingMark, String trainingReview,
			String studentName) {
		super(id);
		this.course = new Course(id1, courseName, teacherName, period, hours);
		this.trainingMark = trainingMark;
		this.trainingReview = trainingReview;
		this.studentName = studentName;
	}*/

	public Course getCourse() {
		return course;
	}
	
	public int getTrainingMark() {
		return trainingMark;
	}

	public String getTrainingReview() {
		return trainingReview;
	}

	public void setCourse(Course course) {
		this.course = course;
	}

	public void setTrainingMark(int trainingMark) {
		this.trainingMark = trainingMark;
	}

	public void setTrainingReview(String trainingReview) {
		this.trainingReview = trainingReview;
	}

	public String getStudentName() {
		return studentName;
	}
	public void setStudentName(String studentName) {
		this.studentName = studentName;
	}
	@Override
	public String toString() {
		return "Training " + course.toString() + ", trainingMark="
				+ trainingMark + ", trainingReview=" + trainingReview + "]";
	}
}
